package com.ndp.fb.walle.model.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by jacky.cheng on 2016/5/3.
 */
@Getter
@Setter
@NoArgsConstructor
public class SimpleVo implements Serializable {
    String id;
    String name;

    public SimpleVo(Object o) {
        JSONObject o1 = (JSONObject) JSON.toJSON(o);
        id=o1.getString("id");
        name=o1.getString("name");
    }
}
